cmake_minimum_required(VERSION 3.16)
project(ffmpeg_sdl_player C)

set(CMAKE_C_STANDARD 11)
set(SRC_DIR ./src)

include_directories(include/)
link_directories(lib/)

set(SOURCE_FILES
#        ${SRC_DIR}/simple_player.c
#        ${SRC_DIR}/player2.c
#        ${SRC_DIR}/simple_player2.c
        ${SRC_DIR}/player6.c
        )

add_executable(ffmpeg_sdl_player
        ${SOURCE_FILES})

target_link_libraries(
        ffmpeg_sdl_player
        avformat.61
        avcodec.61
        avdevice.61
        avfilter.10
        avutil.59
        postproc.58
        swresample.5
        swscale.8
        SDL2-2.0.0
)